package com.hjq.demo.yuliao.api

import android.os.Parcelable
import com.hjq.http.config.IRequestApi
import kotlinx.parcelize.Parcelize

/**
 *
 * @author jiahe
 * 创建日期 2022/2/12
 * 描述 登录和注册
 *
 */
class GetUserinfoApi : IRequestApi {

    override fun getApi(): String {
        return "user/get_user_info"
    }

//    open var phone: String = ""
//        set(value) {
//            field = value
//        }

    @Parcelize
    data class Response(
        val user_info: UserInfo
    ) : Parcelable

    @Parcelize
    data class UserInfo(
        val age: String,
        val attention_count: String,
        val avatar_url: String,
        val diamond: String,
        val fans_count: String,
        val gender: String,
        val gold: String,
        val introduce: String,
        val name: String,
        val user_id: String
    ) : Parcelable
}